package com.wlyuan.open.scanner.utils.enums.order;

import lombok.Getter;

/**
 * @author lijing
 * @Description 老系统订单拆单标识
 */
@Getter
public enum OrderSplitMarkEnum {

    NO_DISMANTLE("否", 0),
    SPLIT_ORDER("是", 1);

    private Integer value;
    private String name;

    OrderSplitMarkEnum(String name, Integer value) {
        this.value = value;
        this.name = name;
    }

    public static boolean isSplit(Integer val) {
        return SPLIT_ORDER.getValue().equals(val);
    }

}